package Q1;

import java.util.Scanner;

public class Main {

    public static int ret;
    public static int n;

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        n = scanner.nextInt();

        dfs(n);
        System.out.println(ret);
    }

    public static void dfs(int last) {
        if (last == 0) {
            ret++;
            return;
        }

        if (last < 0) {
            return;
        }

        for (int i = 1; i <= n; i++) {
            dfs(last - i);
        }
    }
}
